package javaDemo12.网络编程;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;

public class Sever {
    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(40000);

        while(true){
            Socket s = ss.accept();
            new Thread(new ServerThread(s)).start();

        }
    }
}
